<?php
/**
 * 
 * 简单的调度
 * @author yucy<yucy1985@gmail.com>
 *
 */
class SimpleDispatcher extends YucyDispatcher
{
	protected function dispatch()
	{
		$module_name = Yucy::getApp()->getRequest()->get(YucyConfig::get('module_var'));
		if ($module_name) $this->setModuleName($module_name);
		
		$controller_name = Yucy::getApp()->getRequest()->get(YucyConfig::get('controller_var'));
		if ($controller_name) $this->setControllerName($controller_name);
		
		$action_name = Yucy::getApp()->getRequest()->get(YucyConfig::get('action_var'));
		if ($action_name) $this->setActionName($action_name);
	}
}